package net.infamily.web;

import net.infamily.dao.impl.JdoDaoModule;
import net.infamily.logic.impl.LogicModule;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.persist.jpa.JpaPersistModule;
import com.google.inject.servlet.GuiceServletContextListener;

public class MyGuiceServletContextListener extends GuiceServletContextListener {

	@Override
	protected Injector getInjector() {
		return Guice.createInjector(
				new WebModule(), 
				new LogicModule(),
				new JdoDaoModule(), 
				new JpaPersistModule("transactions-optional"));
	}

}
